package com.zut.yyzx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    private Date createTime;


    private Integer createBy;


    private Date updateTime;


    private Integer updateBy;


    private Integer isDeleted;


    private String nickname;


    private String username;


    private String password;


    private Integer sex;


    private String email;


    private String phoneNumber;


    private Integer roleId;
    //当前用户角色菜单
    @TableField(exist = false)//表示该属性不为数据库表字段
    private List<Menu> menuList;

}
